﻿using System;
using System.Collections.Generic;
using System.Text;
using Castle.Core.Interceptor;

namespace EmptyStudy
{
    public class EmptyObjectInterceptor : IInterceptor
    {
        public void Intercept(IInvocation invocation)
        {
            Type T = invocation.Method.ReturnType;
            if (T.FullName == "System.Void")
            {
                //do nothing;
            }
            else
            {
                invocation.Proceed();
            }
        }
    }
}
